package secondtest.mapper;

import secondtest.po.*;

import java.util.List;

public interface UserMapper {

    User findUserByid(int id);

    List<User> findUserByName(String name);

    void insertUser(User user);

    void deleteUser(int id);

    void updateUser(User user);

    List<CustomUser> findUserList(QueryUser queryUser);

    ShamUser findShamUser(int id);

    List<User> findUserInfo(User user);

    List<User> findUserIn(QueryUser queryUser);

    List<OrderWithUser> fetchOrderAndUserInfoByResultType();

    List<Order> fetchOrderAndUserInfoByResultMap();

    List<Order> fetchOrderAndDetailByResultMap();

    List<User> fetchUserWithItems();

    User selectUserByOrder(int id);

    List<Order> selectOrderWithUserInfoLazy();
}
